<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddStoreReceiveAmount extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('order_payments', function (Blueprint $table) {
            $table->integer('store_receive_amount')->nullable()->comment('门店分账金额')->after('user_receive_amount');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('order_payments', function (Blueprint $table) {
            $table->dropColumn(['store_receive_amount']);
        });
    }
}
